package com.gopay.common.domain.ic;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/*
 * Copyright (c) 2016. www.gopay.com.cn Inc.All rights reserved.
 * 项目名称 : 国付宝内部对账(2016/11/29)
 * 文件名称 : IcTradeBalance
 * 创建日期 : 16-12-21 下午6:00
 * Author   : baiyunpeng
 *
 */

@Entity
@Table(name = "IC_TRADE_BALANCE")
public class IcTradeBalance extends BaseEntity {
    private String checkDate;
    private BigDecimal debitAmt;
    private BigDecimal creditAmt;
    private BigDecimal diffAmt;
    private Integer version;
    private Date createdTs;
    private Date lastUpdTs;
    private String remark;
    private Integer keyId;
    private boolean isNotCover=true;
    @Column(name = "LAST_UPD_TS")
    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }
    @Column(name = "REMARK")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Transient
    public boolean getIsNotCover() {
        return isNotCover;
    }

    public void setIsNotCover(boolean isNotCover) {
        this.isNotCover = isNotCover;
    }
    @Column(name = "CHECK_DATE")
    public String getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(String checkDate) {
        this.checkDate = checkDate;
    }
    @Column(name = "DEBIT_AMT")
    public BigDecimal getDebitAmt() {
        return debitAmt;
    }

    public void setDebitAmt(BigDecimal debitAmt) {
        this.debitAmt = debitAmt;
    }
    @Column(name = "CREDIT_AMT")
    public BigDecimal getCreditAmt() {
        return creditAmt;
    }

    public void setCreditAmt(BigDecimal creditAmt) {
        this.creditAmt = creditAmt;
    }
    @Column(name = "DIFF_AMT")
    public BigDecimal getDiffAmt() {
        return diffAmt;
    }

    public void setDiffAmt(BigDecimal diffAmt) {
        this.diffAmt = diffAmt;
    }
    @Version
    @Column(name = "VERSION")
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    @Column(name = "CREATED_TS")
    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "IC_TRADE_BALANCE_SEQ")
    @SequenceGenerator(name = "IC_TRADE_BALANCE_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "IC_TRADE_BALANCE_SEQ")
    @Column(name = "KEY_ID")
    public Integer getKeyId() {
        return keyId;
    }

    public void setKeyId(Integer keyId) {
        this.keyId = keyId;
    }
}
